<template>
  <div class="header">
    <div class="header-left" @click="$router.push('/city')">
      {{this.$store.state.city}}
      <span class="iconfont arrow-icon">&#xe60e;</span>
    </div>
    <div class="header-input" @click="$router.push('/search')">
      <span class="iconfont">&#xe600;</span>
      输入向导/城市/景点
    </div>
    <div class="header-right">搜索</div>
  </div>
</template>

<script>
export default {
  name: "HomeHeader"
  // props: ['city']
};
</script>

<style lang="stylus" scoped>
@import '~@/assets/style/variable.styl';

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  line-height: 0.8rem;
  background-color: $themeColor;

  .header-left {
    min-width: 1.34rem;
    padding: 0 0.1rem;
    float: left;
    text-align: center;
    color: #fff;

    .arrow-icon {
      font-size: 0.2rem;
    }
  }

  .header-input {
    flex: 1;
    border-radius: 0.1rem;
    margin-top: 0.1rem;
    /* margin-left: 0.2rem; */
    padding-left: 0.2rem;
    height: 0.6rem;
    line-height: 0.6rem;
    background-color: #fff;
    color: #ccc;
  }

  .header-right {
    width: 0.86rem;
    float: right;
    text-align: center;
    color: #fff;
  }
}
</style>